//
//  BGWebViewController.m
//  bigMall
//
//  Created by LTOVE on 16/8/15.
//  Copyright © 2016年 thinklev. All rights reserved.
//

#import "BGWebViewController.h"

@interface BGWebViewController ()

@end

@implementation BGWebViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}




+ (instancetype)webViewWithUrlStr:(NSString *)url
{
    BGWebViewController *viewC = [[BGWebViewController alloc]init];
    UIWebView *webView = [[UIWebView alloc]initWithFrame:BGKeyWindow.bounds];
    
    webView.scalesPageToFit = YES;
    webView.detectsPhoneNumbers = YES;
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
    [viewC.view addSubview:webView];
    [webView loadRequest:request];
    
    
    return viewC;
}



@end
